package com.thread.thread01;

/**
 * @version: java version 23
 * @Author: 韩学新
 * @description:
 * @date: 2025-03-24 下午7:50
 */
public class Thread1 extends Thread {

    @Override
    public void run() {

        try {
            Thread.sleep(3000);
            System.out.println(Thread.currentThread().getName() + " Thread is running");
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

    }

    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName() + " Thread is running");
        new Thread1().start();
    }
}
